package com.example.devices.api

import com.example.net.HttpRetrofitAnnotation
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import retrofit2.create
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object DevicesHiltModel {
    @Provides
    @Singleton
    fun getDevicesApiServerModel(@HttpRetrofitAnnotation retrofit: Retrofit):DevicesApiServer{
        return retrofit.create(DevicesApiServer::class.java)
    }
}